<script setup lang="ts">
import { ref } from 'vue';

const aLink = ref('https://www.baidu.com')
const imgSrc = ref('https://smart-shop.itheima.net/uploads/10001/20230320/7143e84bf3dd41fa67b9675a9e5d81a3.jpg')
</script>


<template>
  <div id="app">
    <!-- <a href="{{ aLink }}">百度一下</a> -->
    <!-- <a href="aLink">百度一下</a> -->
    <a v-bind:href="aLink">百度一下</a>
    <a :href="aLink">百度一下</a>
    <img :src="imgSrc" alt="">
  </div>
</template>

<style></style>
